import Vue from 'vue'
import Router from 'vue-router'
import index from '@/View/index'
import indexTwo from '@/View/indexTwo'
// 首页
import firstIndex from '@/View/firstIndex'
// 报修
import Repair from '@/View/repair'
// 小区公告列表
import NoticeList from '@/View/noticeList'
// 小区公告详情
import NoticeDetail from '@/View/noticeDetail'
// 包裹
import Parcel from '@/View/parcel'
// 包裹详情
import ParcelDetail from '@/View/parcelDetail'
// 办事指南
import Guide from '@/View/guide'
// 办事指南详情
import GuideDetails from '@/View/guideDetail'
// 选择城市
import myCity from '@/View/other/myCity'
// 选择小区
import MyResidential from '@/View/other/myResidential'
// 费用缴纳
import AllPay from '@/View/allPay'
// 车辆费用
import ParkingFee from '@/View/parkingFee'
// 个人中心
import Mine from '@/View/mine'
// 附近
import Nearby from '@/View/nearby'
// 缴费详情
import AllPayDetail from '@/View/allPayDetail'
// 商家列表
import BusinessDetail from '@/View/businessDetail'
// 物业租售列表
import HouseList from '@/View/houseList'
// 物业租售详情
import HouseDetail from '@/View/houseDetail'
// 社区
import Community from '@/View/community'
// 政务信息页
import Information from '@/View/information'
// 社区论坛
import Forum from '@/View/forum'
// 我的收藏
import Collection from '@/View/collection'
// 添加房屋
import AddHome from '@/View/addHome'
// 验证手机
import Verification from '@/View/verification'
// 新增报修
import NewRepair from '@/View/newRepair'
// 报修详情
import RepairDetail from '@/View/repairDetail'
//报修列表（历史）
import RepairList from '@/View/repairList'
//我的房屋
import MyHome from '@/View/myHome'
//意见反馈
import FeedBack from '@/View/feedBack'
//意见反馈详情
import FeedBackDetail from '@/View/feedBackDetail'
//自助缴费
import SelfPay from '@/View/selfPay'
//自助缴费
import UserPay from '@/View/userPay'
//房屋成员
import HouseMembers from '@/View/houseMembers'
//编辑个人信息
import Edit from '@/View/edit'
//搜索
import Seach from '@/View/seach'
//订水
import Water from '@/View/water'
//订水列表
import WaterList from '@/View/waterList'
//订水详情
import WaterDetail from '@/View/waterDetail'
//居民健康表单
import Health from '@/View/health'
//周边
import Periphery from '@/View/periphery'
//社区
import SecondIndex from '@/View/secondIndex'
//社区公告列表
import CommunityList from '@/View/communityList'
//社区公告详情
import CommunityListDetails from '@/View/communityListDetails'
//志愿者申请
import Volunteer from '@/View/volunteer'
//添加住户信息
import AddHousehold from '@/View/addHousehold'
//添加住户信息
import AddMerchants from '@/View/addMerchants'
//创建预约
import AddAppointment from '@/View/addAppointment'
//预约详情
import AppointmentDetail from '@/View/appointmentDetail'
//社区意见反馈
import Listen from '@/View/listen'
//民意调查详情
import ListenDetail from '@/View/listenDetail'
//社区健康申报
import healthDeclare from '@/View/declare'
//社区动态
import Dynamic from '@/View/dynamic'
//民意调查
import Opinion from '@/View/opinion'
//疫情防控
import Epidemic from '@/View/epidemic'
//社区办事指南类型
import CommunityType from '@/View/communityType'
//社区办事指南列表
import CommunityGuide from '@/View/communityGuide'
//社区办事指南详情
import CommunityGuideDtl from '@/View/communityGuideDtl'
//社区的周边
import CommunityPeriphery from '@/View/communityPeriphery'
import Attestation from '@/View/attestation'
import Sudodetail from '@/View/sudodetail'

import Identification from '@/View/identification'



Vue.use(Router)

const router = new Router({
    routes: [{
            path: '/',
            name: 'index',
            component: index,
            redirect: '/firstIndex',
            children: [{
                    path: 'firstIndex',
                    name: 'firstIndex',
                    component: firstIndex,
                    meta: {
                        keepAlive: true
                    }
                },
                {
                    path: '/periphery',
                    name: 'periphery',
                    component: Periphery,
                    meta: {
                        keepAlive: false
                    }
                },
                {
                    path: '/mine',
                    name: 'mine',
                    component: Mine,
                    meta: {
                        keepAlive: true
                    }
                }
            ],
        },
        {
            path: '/community',
            name: 'community',
            component: Community,
        },
        {
            path: '/communityList',
            name: 'communityList',
            component: CommunityList,
        },
        {
            path: '/secondIndex',
            name: 'secondIndex',
            component: SecondIndex,
        },
        {
            path: '/communityListDetails',
            name: 'communityListDetails',
            component: CommunityListDetails,
        },
        {
            path: '/volunteer',
            name: 'volunteer',
            component: Volunteer,
        },
        {
            path: '/epidemic',
            name: 'epidemic',
            component: Epidemic,
        },
        {
            path: '/addHousehold',
            name: 'addHousehold',
            component: AddHousehold,
        },
        {
            path: '/addMerchants',
            name: 'addMerchants',
            component: AddMerchants,
        },
        {
            path: '/addAppointment',
            name: 'addAppointment',
            component: AddAppointment,
        },
        {
            path: '/appointmentDetail',
            name: 'appointmentDetail',
            component: AppointmentDetail,
        },
        {
            path: '/listen',
            name: 'listen',
            component: Listen,
        },
        {
            path: '/listenDetail',
            name: 'listenDetail',
            component: ListenDetail,
        },
        {
            path: '/myCity',
            name: 'myCity',
            component: myCity,
        },
        {
            path: '/myResidential',
            name: 'myResidential',
            component: MyResidential
        },
        {
            path: '/repair',
            name: 'repair',
            component: Repair
        },
        {
            path: '/parcel',
            name: 'parcel',
            component: Parcel
        },
        {
            path: '/parcelDetail',
            name: 'parcelDetail',
            component: ParcelDetail
        },
        {
            path: '/noticeList',
            name: 'noticeList',
            component: NoticeList,
        },
        {
            path: '/noticeDetail',
            name: 'noticeDetail',
            component: NoticeDetail,
        },
        {
            path: '/guide',
            name: 'guide',
            component: Guide
        },
        {
            path: '/nearby',
            name: 'nearby',
            component: Nearby
        },
        {
            path: '/guideDetail',
            name: 'guideDetail',
            component: GuideDetails
        },
        {
            path: '/allPay',
            name: 'allPay',
            component: AllPay
        },
        {
            path: '/parkingFee',
            name: 'parkingFee',
            component: ParkingFee
        },
        {
            path: '/allPayDetail',
            name: 'allPayDetail',
            component: AllPayDetail
        },
        {
            path: '/businessDetail',
            name: 'businessDetail',
            component: BusinessDetail
        },
        {
            path: '/houseList',
            name: 'houseList',
            component: HouseList
        },
        {
            path: '/houseDetail',
            name: 'houseDetail',
            component: HouseDetail
        },
        {
            path: '/information',
            name: 'information',
            component: Information
        },
        {
            path: '/forum',
            name: 'forum',
            component: Forum
        },
        {
            path: '/collection',
            name: 'collection',
            component: Collection
        },
        {
            path: '/addHome',
            name: 'addHome',
            component: AddHome
        },
        {
            path: '/verification',
            name: 'verification',
            component: Verification
        },
        {
            path: '/newRepair',
            name: 'newRepair',
            component: NewRepair
        },
        {
            path: '/repairDetail',
            name: 'repairDetail',
            component: RepairDetail
        },
        {
            path: '/repairList',
            name: 'repairList',
            component: RepairList
        },
        {
            path: '/myHome',
            name: 'myHome',
            component: MyHome
        },
        {
            path: '/feedBack',
            name: 'feedBack',
            component: FeedBack
        },
        {
            path: '/feedBackDetail',
            name: 'feedBackDetail',
            component: FeedBackDetail
        },
        {
            path: '/selfPay',
            name: 'selfPay',
            component: SelfPay
        },
        {
            path: '/userPay',
            name: 'userPay',
            component: UserPay
        },
        {
            path: '/houseMembers',
            name: 'houseMembers',
            component: HouseMembers
        },
        {
            path: '/edit',
            name: 'edit',
            component: Edit
        },
        {
            path: '/seach',
            name: 'seach',
            component: Seach,
            meta: {
                keepAlive: true
            }
        },
        {
            path: '/water',
            name: 'water',
            component: Water,
        },
        {
            path: '/waterList',
            name: 'waterList',
            component: WaterList,
        },
        {
            path: '/waterDetail',
            name: 'waterDetail',
            component: WaterDetail,
        },
        {
            path: '/health',
            name: 'health',
            component: Health,
        },
        {
            path: '/declare',
            name: 'declare',
            component: healthDeclare,
        },
        {
            path: '/dynamic',
            name: 'dynamic',
            component: Dynamic,
        },
        {
            path: '/opinion',
            name: 'opinion',
            component: Opinion,
        },
        {
            path: '/communityType',
            name: 'communityType',
            component: CommunityType,
        },
        {
            path: '/communityGuide',
            name: 'communityGuide',
            component: CommunityGuide,
        },
        {
            path: '/communityGuideDtl',
            name: 'communityGuideDtl',
            component: CommunityGuideDtl,
        },
        {
          path: '/communityPeriphery',
          name: 'communityPeriphery',
          component: CommunityPeriphery,
        },
        //原来老版本于新版本你地址不同需要重定向
        {
            path: '/indexDetails',
            name: 'indexDetails',
            redirect: '/NoticeDetail',
        },
        {
            path: '/expressDetaile',
            name: 'expressDetaile',
            redirect: '/parcelDetail',
        },
        {
            path: '/repairDetails',
            name: 'repairDetails',
            redirect: '/repairDetail',
        },
        {
            path: '/attestation',
            name: 'attestation',
            component: Attestation,
        },
        {
            path: '/sudodetail',
            name: 'sudodetail',
            component: Sudodetail,
        },
        {
            path: '/identification',
            name: 'identification',
            component: Identification,
        }
    ]
});
export default router;
